package ModelLayer;

import java.io.Serializable;

/**
 * This is our Supplier class with Supplier information about company fx. account number.
 * @author Kim Dam Gr�nh�j
 * @version 09-12-2014
 *
 */
public class Supplier extends Company implements Serializable
{	
	private static final long serialVersionUID = 4757103463376761789L;
	
	private int accountNumber;
	private int registrationNumber;
	
	/**
	 * Creates an instance of this Company
	 * @param accountNumber insert integer bank account number
	 * @param registrationNumber insert integer bank account registration number
	 */
	public Supplier(String cvr, String co, String address, String phoneNumber, String email, int accountNumber, int registrationNumber)
	{
		super(cvr, co, address, phoneNumber, email);
		this.accountNumber = accountNumber;
		this.registrationNumber = registrationNumber;
	}
	
	/**
	 * Gets the bank account number for this Supplier
	 * @return integer with the account number
	 */
	public int getAccountNumber()
	{
		return accountNumber;
	}
	
	/**
	 * Sets the bank account number for this Supplier
	 * @param accountNumber integer bank account number
	 */
	public void setAccountNumber(int accountNumber)
	{
		this.accountNumber = accountNumber;
	}
	
	/**
	 * Gets the bank account registration number
	 * @return integer bank account registration number
	 */
	public int getRegistrationNumber()
	{
		return registrationNumber;
	}
	
	/**
	 * Sets the bank account registration number
	 * @param registrationNumber integer bank account registration number
	 */
	public void setRegistrationNumber(int registrationNumber)
	{
		this.registrationNumber = registrationNumber;
	}
}
